/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ufcg.boombox.controller.listener;

import br.edu.ufcg.boombox.controller.PaginaInicialBoomBoxController;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

/**
 *
 * @author Targaryen
 */
public class FotoPerfilMouseListener implements MouseListener {
    
    private PaginaInicialBoomBoxController paginaInicialController;

    public FotoPerfilMouseListener(){}
    
    public FotoPerfilMouseListener(PaginaInicialBoomBoxController paginaInicialController) {
        this.paginaInicialController = paginaInicialController;
    }
    
    @Override
    public void mouseClicked(MouseEvent e) {
        if(e.getClickCount() == 2) {
            System.out.println("Estou iniciando a tela de trocar de fotod e perfil!");
            this.paginaInicialController.iniciarSelecionadorDeImagens();
        }
    }

    @Override
    public void mousePressed(MouseEvent e) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseReleased(MouseEvent e) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseEntered(MouseEvent e) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void mouseExited(MouseEvent e) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
